<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/7/2
  Time: 15:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String userId = request.getParameter("userId");
%>
<html>
<head>
    <title>个人中心</title>
    <style>
        body {
            background-color: rgb(245, 247, 251);
            font-family: Arial, sans-serif;
            /* 字体渲染顺序https://blog.csdn.net/Tusk_Act4/article/details/112547567 */
            width: 100%;
            margin: 0 auto;
            background-image: url("image/2.jpg");

        }

        p {
            display: inline-block;
        }

        img {
            display: inline-block;
        }

        /* 设置搜索框样式 */
        /* 搜索框样式 */
        .search-box {
            display: flex;
            align-items: stretch;
            width: 300px;
            border-radius: 4px;
            overflow: hidden;
            border: 1px solid transparent;
            position: relative;
            left: 850px;
            top: -14px;
        }

        /* 搜索输入框样式 */
        .search-input {
            border: 1.5px solid rgb(220, 223, 230);
            flex: 1;
            padding: 10px;
            border-radius: 4px;
            transition: border-color 0.5s;
            background-color: transparent;
            font-size: 15px;
        }

        /* 搜索输入框hover效果 */
        .search-input:hover {
            outline: none;
            border-color: rgb(168, 168, 168);
        }

        /* 搜索输入框聚焦效果 */
        .search-input:focus {
            outline: none;
            border-color: rgb(64, 158, 255);
        }

        /* 搜索按钮样式 */
        .search-btn {
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            border-right: 1.5px rgb(220, 223, 230);
            border-top: 1.5px rgb(220, 223, 230);
            border-bottom: 1.5px rgb(220, 223, 230);
            border-left: 0px;
            border-style: solid;
            border-radius: 0 4px 4px 0;
            background-color: rgb(236, 236, 236);
        }

        .search-btn:hover {
            cursor: pointer;
        }

        .RR {
            font-size: 15px;
            background-color: rgb(39, 154, 255);
            color: white;
            font-weight: bolder;
            border: 1px;
            border-style: solid;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0px;
            margin: 3px 1px;
            height: 30px;
            width: 100px;
            line-height: 0.6px;
            border-radius: 4px;
            font-size: 10px;
        }

        #re-rr,
        #rr-rr {
            background-color: rgb(41, 148, 255);
            color: white;
            height: 38px;
            width: 100px;
            font-size: 14px;
        }

        #rr-rr,
        #re-rr:hover {
            cursor: pointer;
        }

        #rr-rr:active,
        #re-rr:active {
            background-color: rgb(0, 80, 160);
        }

        #content-left-upper {
            background-color:white;
            padding: 1em;
            margin: 5px;
            margin-bottom: 0px;
            transition: box-shadow .25s ease-in-out;
            border-radius: 4px;
            border: 1px solid rgb(228, 231, 237);
            width: 500px;
            height: 650px;
            display: block;
            margin: 0 auto;
            text-align: center;
        }

        #content-left-upper:hover {
            box-shadow: 0 0 10px rgba(155, 155, 155, 0.5);
        }

        table td {
            text-align: right;
            vertical-align: super;
        }

        #password_form{
            text-align: center;
        }
        a {
            text-decoration: none;
        }
    </style>
</head>
<body>
    <div style="width: 100%;height: 40px;background-color:pink">
        <h3 style="color:white;padding-left: 20px;padding-top: 8px;"><a href="firstpage.jsp" style="color:white;" onmouseover="this.style.color='black';" onmouseout="this.style.color='white';">首页</a>/成绩管理</h3>
    </div>
    <div style="width: 100%;height: 20px;background-color:paleturquoise"> </div>

<div style="padding-top: 20px">
    <div id="content-left-upper">
        <p>欢迎您 <%=userId%>
        </p>
        <div>
            <img class="avator" src="image/1.jpg" width="80px" height="80px">
            <br><button type="button" class="RR" id="rr-rr">上传头像</button>
        </div>
        <form action="ChPServlet" method="post">
            <div id="password_form">
                <table>
                    <tr>
                        <td><label for="userId">用户名:</label></td>
                        <td><input class="search-input" type="password" id="oldPassword" name="oldPassword"
                                   placeholder="2210705240" disabled><br><p style="color:red;font-size:small;line-height:6px;">注：用户名不允许修改</p><br></td>

                    </tr>

                    <tr>
                        <td><label for="oldPassword">原密码:</label></td>
                        <td><input class="search-input" type="password" id="oldPassword" name="oldPassword"
                                   placeholder="请输入原密码" required><br><br></td>
                    </tr>
                    <tr>
                        <td><label for="newPassword">新密码:</label></td>
                        <td><input class="search-input" type="password" id="newPassword" name="newPassword"
                                   placeholder="请输入新密码" required><br><br></td>
                    </tr>
                    <tr>
                        <td><label for="confirmPassword">确认密码:</label></td>
                        <td><input class="search-input" type="password" id="confirmPassword" name="confirmPassword"
                                   placeholder="请输入新密码" required><br><br></td>
                    </tr>
                </table>
            </div>
            <button type="button" class="RR" id="re-rr">确认修改</button>
        </form>
    </div>
</div>
<div style="width: 100%;height: 60px;background-color:paleturquoise;position: fixed; bottom: 0; "> </div>
</body>
</html>
